import React from "react";
import { IRouteComponentProps } from "umi";
console.log(1111)
export default function ({children,location}:IRouteComponentProps){
    if(location.pathname==='/mine'){
        console.log(children)
        return children
    }else{
        console.log(children)
        return(
            <div>
                <h1>布局组件</h1>
                {children}
            </div>
        )
    }
}
console.log('layouts')